package com.cj.bigfileupload.common.exception;

/**
 * ClassName: BusinessException <br/>
 * Function: 业务异常类 <br/>
 * date: 2018/05/08 15:33 <br/>
 *
 * @author chenj
 * @version 1.0.0
 * @since JDK 1.8
 */
public class BusinessException extends RuntimeException {

    private static final long serialVersionUID = -1885177031297266654L;

    /**
     * 错误代码,参见：i18n下properties文件
     */
    private String code;

    /**
     * 错误code参数值
     */
    private Object[] args;

    public BusinessException(String code) {
        super();
        this.code = code;
    }

    public BusinessException(String code, Object... args) {
        super();
        this.code = code;
        this.args = args;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public Object[] getArgs() {
        return args;
    }

    public void setArgs(Object[] args) {
        this.args = args;
    }

}
